/**
 * 初始一个buffer全为0
 */
const arr = Buffer.alloc(10)
console.log(arr)

/**
 * 让某些字符转为buffer
 */
const str = Buffer.from('l love you')
console.log(str);

/**
 * allocUnsafe 创建未知的空间作为buffer
 */
const word = Buffer.allocUnsafe(10)
console.log(word);
